const common = {
  namespaced: true,
  state: {
    // 主题 兼容未处理暂不使用
    // theme: uni.getStorageSync("__APP__theme") || {
    //   mode: "light",
    // },
    version: "1.0.0",
    navHeight: 48,
    statusHeight: 20,
    // 微信右上角胶囊
    mpMenuButtonReact: {
      bottom: 80,
      height: 32,
      left: 281,
      right: 368,
      top: 48,
      width: 87,
    },
  },
  actions: {},
  mutations: {
    // 设置主题
    // setTheme(state: any, theme) {
    //   state.theme = theme;
    // },
    // 导航条高度
    initScreenNavbarInfo(state: any, info: any) {
      state.navHeight = info.navHeight;
      state.statusHeight = info.statusHeight;
    },
    // 胶囊
    initMpMenuButtonReact(state: any, react: any) {
      state.mpMenuButtonReact = react;
    },
  },
};
export default common;
